﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sync.Library
{
    [Serializable]
    public class Server
    {
        int iD = 0;
        string description = "";
        string iP = "";
        string port = "";
        string instanceName = "";
        string userID = "";
        string password = "";
        string dBName = "";

        private Tables tables = new Tables();

        public Tables Tables
        {
            get
            {
                return tables;
            }
        }

        public int ID
        {
            get { return iD; }
        }

        public string Description
        {
            get { return description; }
            set
            {
                if (!description.Equals(value))
                {
                    description = value;
                }
            }
        }

        public string IP
        {
            get { return iP; }
            set
            {
                if (!iP.Equals(value))
                {
                    iP = value;
                }
            }
        }

        public string Port
        {
            get { return port; }
            set
            {
                if (!port.Equals(value))
                {
                    port = value;
                }
            }
        }

        public string InstanceName
        {
            get { return instanceName; }
            set
            {
                if (!instanceName.Equals(value))
                {
                    instanceName = value;
                }
            }
        }

        public string UserID
        {
            get { return userID; }
            set
            {
                if (!userID.Equals(value))
                {
                    userID = value;
                }
            }
        }

        public string Password
        {
            get { return password; }
            set
            {
                if (!password.Equals(value))
                {
                    password = value;
                }
            }
        }

        public string DBName
        {
            get { return dBName; }
            set
            {
                if (!dBName.Equals(value))
                {
                    dBName = value;
                }
            }
        }
    }
}
